public class Demo5 {


//    public class PhoneText {
//        public static void main(String[] args) {
//            //创建手机对象
//            Phone p = new Phone();
//
//            //给手机赋值
//            p.brand="小米";
//            p.Prick=1999.23;
//
//            //获取手机对象中的值
//            System.out.println(p.brand);
//            System.out.println(p.Prick);
//
//
//            //调用手机中的方法
//            p.call();
//            p.playGame();
//        }
//    }

}

//package student.day8;
//
//class SalariedEmployee extends ColaEmployee {
//    private int monthlySalary;
//    public SalariedEmployee(String name,int month,int monthlySalary){
//        super(name,month);
//        this.monthlySalary=monthlySalary;
//    }
//
//
//    public int getSalary(int month1){
//        return super.getSalary(month1)+monthlySalary;
//    }
//}

//package student.day8;
//
// class SalesEmployee extends ColaEmployee {
//     private double sales;//月销售额
//     private double commissioRate;//提成率
//
//
//     public SalariedEmployee(String name ,int Month ,double sales, double commissioRate){
//         super(name,Month);
//         this.sales=sales;
//         this.commissioRate=commissioRate;
//     }
//      public int getSalary(int Month1){
//         return (int) (super.getSalary(Month1)) + sales * commissioRate);
//      }
//}


//package student.day8;
//
//public class TestCompany {
//    public static void main(String[] args) {
//        ColaEmployee[] employees =new ColaEmployee[4];
//        employees[0] = new SalariedEmployee("张三",6,5000);
//
//        Company company = new Company();
//        company.printEmploySalaries(employees,6);
//    }
//}
